{
    // function hdms(){
    //     let a = "abc";
    //     let b = (x: number,y: number) => x + y;
    //     return [a,b];
    // }
    // 方法一
    // const [m,n] = hdms();
    // console.log((n as (x: number,y: number) => number)(1,2));
    // console.log((n as Function)(1,2));
    // 方法二
    // const [m,n] = hdms() as [string,(x: number,y: number) => number];
    // const [m,n] = hdms() as [string,Function];
    // console.log(n(1,2));
    // 方法三
    // function hdms(){
    //     let a = "abc";
    //     let b = (x: number,y: number) => x + y;
    //     return [a,b] as [string,Function];
    // }
    // 方法四
    // function hdms(){
    //     let a = "abc";
    //     let b = (x: number,y: number) => x + y;
    //     return [a,b] as [string,(x: number,y: number) => number];
    // }
    // 方法五
    // function hdms(){
    //     let a = "abc";
    //     let b = (x: number,y: number) => x + y;
    //     return [a,b] as [typeof a,typeof b];
    // }
    // 方法六
    function hdms() {
        var a = "abc";
        var b = function (x, y) { return x + y; };
        return [a, b];
    }
    var _a = hdms(), m = _a[0], n = _a[1];
    console.log(n(1, 2));
}
